package com.ivo.biz;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ivo.core.hibernate.ModelManager;

/**
 * 
 *
 * @author Minkey Wang
 * @version 2017年7月5日
 */
@Repository
public class OperationForemanManager extends ModelManager<OperationForeman>{

	public void deleteAll() {
	    String hql ="select u.id from OperationForeman u where u.isValid=true";
	    List<Long> list = hibernateInvoker.find(Long.class, hql);
	    Long[] ids = (Long[])list.toArray(new Long[list.size()]);
	    this.delete(ids);
	}

}
